home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11489 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: castle.nando.net!news
  2. From: Caius Martius <caius@nando.net>
  3. Newsgroups: comp.lang.c++
  4. Subject: Need help with *.def file in Borland 4.0  (Alocating memory)
  5. Date: Thu, 14 Mar 1996 14:49:10 -0800
  6. Organization: Nando.net
  7. Message-ID: <3148A266.6F24@nando.net>
  8. NNTP-Posting-Host: grail2112.nando.net
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (Win95; I; 16bit)
  13.  
  14. I am a student in Computer Science and I work on Sun Sparqs at school, 
  15. which run Unix.  The school uses the AT&T compiler (version 3 I believe), 
  16. but at home I have Borland 4.0.
  17. I live quite a ways from school, so obviously it would be nice to be able 
  18. to work on my assignments at home.
  19.  
  20. My problem is that I can not get some of my programs to run at home 
  21. because of "Stack Overflows" or "Exception Errors".  Now in most cases, 
  22. if I decrease the size of a hefty array, the program will run fine.  So, 
  23. I think that I am not properly setting aside enough system resources to 
  24. execute the program.  I have monkeyed around enough to find out about 
  25. putting heapsize and stacksize lines in the projects *.def file and that 
  26. has solved some of my problems.  What I am looking for is help on how to 
  27. allocate as much memory as possible.
  28.  
  29. I am working on a Windows system with 16 meg of ram and using Borland 4.0
  30.  
  31. Any help would be appreciated.
  32.  
  33.  
  34. -Caius
  35.